﻿using System;

namespace Alex.Library.Tasks
{
    /// <summary>
    /// 任务结果
    /// </summary>
    public class TaskResult
    {
        /// <summary>
        /// 任务
        /// </summary>
        public ITask Task { get; set; }

        /// <summary>
        /// 任务状态
        /// </summary>
        public TaskState State { get; set; }

        /// <summary>
        /// 是否有错误
        /// </summary>
        public bool HasError { get; set; }
    }
}
